package com.synergy.stockflow.sales.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.synergy.stockflow.product.entity.Material;
import com.synergy.stockflow.warehouse.entity.Warehouse;
import io.swagger.v3.oas.annotations.media.Schema;
import java.math.BigDecimal;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Schema
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "quote_details")
public class QuoteDetails {
    /**
     * 报价明细编码
     */
    @TableId(value = "quote_details_id", type = IdType.ASSIGN_ID)
    @Schema(description="报价明细编码")
    private String quoteDetailsId;

    /**
     * 报价单编码
     */
    @TableField(value = "quote_details_quotation_id")
    @Schema(description="报价单编码")
    private String quoteDetailsQuotationId;

    /**
     * 产品编码
     */
    @TableField(value = "quote_details_products_id")
    @Schema(description="产品编码")
    private String quoteDetailsProductsId;

    /**
     * 仓库编码
     */
    @TableField(value = "quote_details_warehouse")
    @Schema(description="仓库编码")
    private String quoteDetailsWarehouse;

    /**
     * 销售数量
     */
    @TableField(value = "quote_details_number_of_sales")
    @Schema(description="销售数量")
    private BigDecimal quoteDetailsNumberOfSales;

    /**
     * 单位
     */
    @TableField(value = "quote_details_unit")
    @Schema(description="单位")
    private String quoteDetailsUnit;

    /**
     * 销售单价（含税）
     */
    @TableField(value = "quote_details_unit_price_of_the_sale")
    @Schema(description="销售单价（含税）")
    private BigDecimal quoteDetailsUnitPriceOfTheSale;

    /**
     * 增值税税率
     */
    @TableField(value = "quote_details_vat")
    @Schema(description="增值税税率")
    private BigDecimal quoteDetailsVat;

    /**
     * 销售单价（不含税）
     */
    @TableField(value = "quote_details_no_unit_price_of_the_sale")
    @Schema(description="销售单价（不含税）")
    private BigDecimal quoteDetailsNoUnitPriceOfTheSale;

    /**
     * 销售原价（含税）
     */
    @TableField(value = "quote_details_price")
    @Schema(description="销售原价（含税）")
    private BigDecimal quoteDetailsPrice;

    /**
     * 实际售价/单价（含税）
     */
    @TableField(value = "quote_details_actual_selling_price")
    @Schema(description="实际售价/单价（含税）")
    private BigDecimal quoteDetailsActualSellingPrice;

    /**
     * 实际合计价格（含税）
     */
    @TableField(value = "quote_details_actual_total")
    @Schema(description="实际合计价格（含税）")
    private BigDecimal quoteDetailsActualTotal;

    /**
     * 实际售价/单价（不含税）
     */
    @TableField(value = "quote_details_no_actual_selling_price")
    @Schema(description="实际售价/单价（不含税）")
    private BigDecimal quoteDetailsNoActualSellingPrice;

    /**
     * 实际合计价格（不含税）
     */
    @TableField(value = "quote_details_no_actual_total")
    @Schema(description="实际合计价格（不含税）")
    private BigDecimal quoteDetailsNoActualTotal;

    /**
     * 成本单价
     */
    @TableField(value = "quote_details_cost")
    @Schema(description="成本单价")
    private BigDecimal quoteDetailsCost;

    /**
     * 成本合计
     */
    @TableField(value = "quote_details_total_cost")
    @Schema(description="成本合计")
    private BigDecimal quoteDetailsTotalCost;

    @TableField(exist = false)
    @Schema(description="仓库")
    private Warehouse warehouse;

    @TableField(exist = false)
    @Schema(description="物料")
    private Material material;


}